//
//  ProductImgOtherModel.m
//  LoveTrail
//
//  Created by giantumbrella on 15/6/24.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "ProductImgOtherModel.h"

@implementation ProductImgOtherModel

- (void)decodeDic:(NSDictionary *)dic
{
    if (dic) {
        if (![[dic objectForKey:@"adImageURL"] isKindOfClass:[NSNull class]]) {
            self.adImageURL = [dic objectForKey:@"adImageURL"];
        }
        if (![[dic objectForKey:@"imageURL"] isKindOfClass:[NSNull class]]) {
            self.imageURL = [dic objectForKey:@"imageURL"];
        }
        if (![[dic objectForKey:@"title"] isKindOfClass:[NSNull class]]) {
            self.title =[dic objectForKey:@"title"];
        }
        if (![[dic objectForKey:@"specification"] isKindOfClass:[NSNull class]]) {
            self.specification = [dic objectForKey:@"specification"];
        }
        if (![[dic objectForKey:@"useAge"] isKindOfClass:[NSNull class]]) {
            self.useAge = [dic objectForKey:@"useAge"];
        }
        if (![[dic objectForKey:@"price"] isKindOfClass:[NSNull class]]) {
            self.price = [dic objectForKey:@"price"];
        }
        if (![[dic objectForKey:@"stock"] isKindOfClass:[NSNull class]]) {
            self.stock = [dic objectForKey:@"stock"];
        }
        if (![[dic objectForKey:@"amount"] isKindOfClass:[NSNull class]]) {
            self.amount = [dic objectForKey:@"amount"];
        }
    }
}
@end
